<?php
session_start();
?>

<?php
$fullname = $_REQUEST['fullname'];
$learning = $_REQUEST['learning'];

$con = mysql_connect("localhost","root","");
mysql_select_db("checklist",$con);

$query = "insert into learnings values('$fullname' , '$learning')";
mysql_query($query) or die(''.mysql_error());

echo '<script type="text/javascript">','alert("Thanks for Sharing !!");',
'window.location = "http://172.26.195.159/checklist/php/mainpage.php";' ,'</script>';

?>